package com.heima.model.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ap_user")
public class ApUser implements Serializable {

    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //密码、通信等加密盐
    private String salt;

    //用户名
    private String name;

    //密码,md5加密
    private String password;

    //手机号
    private String phone;

    //头像
    private String image;

    //0 男   1 女   2 未知
    private Boolean sex;

    //0 未   1 是
    @TableField("is_certification")
    private Boolean certification;

    //是否身份认证
    @TableField("is_identity_authentication")
    private Boolean identityAuthentication;

    //0正常   1锁定
    private Boolean status;

    //0 普通用户   1 自媒体人   2 大V
    private Short flag;

    //注册时间
    @TableField("created_time")
    private Date createdTime;
}
